<html lang="en-US">

<head>
	<meta name="generator" content="Hugo 0.125.7">
    
<title>花落雨忧</title>
<meta property="og:title" content="花落雨忧">
<meta property="og:type" content="website">



    



<meta property="description" content="">






<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">

<link rel="shortcut icon" href="https://www.lican.asia/logo/logo.png" type="image/x-icon" />


<link href="/index.xml" rel="alternate" type="application/rss+xml" title="花落雨忧" />


<link rel="stylesheet" href="/css/style.min.css" />

<link rel="stylesheet" href="/css/reset.min.css" />




<script src="https://www.lican.asia/js/highlight.min.js"></script>

<script>
hljs.configure({ ignoreUnescapedHTML: true })
hljs.highlightAll();
</script>


<script src="https://www.lican.asia/js/jquery.min.js"></script>




<link href="https://www.lican.asia/css/hugo-code.min.css" rel="stylesheet" />



</head>

<body id="period" class="home blog">
    <a class="skip-content" href="#main">Press "Enter" to skip to content</a>
    <div id="overflow-container" class="overflow-container">
        <header class="site-header" id="site-header" role="banner">
    <div class="max-width">
        <div id="title-container" class="title-container">
            <div id="site-title" class="site-title"><a href="/">花落雨忧</a></div>
            <p class="tagline">思所及 力所行 方为真.</p>
        </div>
        
        <div id="menu-primary-container" class="menu-primary-container">
            <div class="icon-container">
            </div>
            <div id="menu-primary" class="menu-container menu-primary" role="navigation">
                <nav class="menu">
                    <ul id="menu-primary-items" class="menu-primary-items">
                        
                        
                        <li id="menu-item-0"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/posts" aria-current="page" tabindex="0">首页</a></li>
                        
                        <li id="menu-item-1"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/tech/" aria-current="page" tabindex="1">技术文档</a></li>
                        
                        <li id="menu-item-2"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/article/" aria-current="page" tabindex="2">文章</a></li>
                        
                        <li id="menu-item-3"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/project/" aria-current="page" tabindex="3">项目</a></li>
                        
                        <li id="menu-item-4"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/about/" aria-current="page" tabindex="4">关于</a></li>
                        
                    </ul>
                </nav>
            </div>
        </div>
    </div>
</header>

        <div id="primary-container" class="primary-container">
            <div class="max-width">
                <section id="main" class="main" role="main">
    <div id="loop-container" class="loop-container">
        
        
        
        
        
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/grpc/2018-10-16-deadlines/">「连载九」gRPC Deadlines</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/10/16</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 在前面的章节中，已经介绍了 gRPC 的基本用法。那你想想，让它这么裸跑真的没问题吗？
那么，肯定是有问题了。今天将介绍 gRPC Deadlines 的 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/grpc/2018-10-14-per-rpc-credentials/">「连载八」对 RPC 方法做自定义认证</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/10/14</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 在前面的章节中，我们介绍了两种（证书算一种）可全局认证的方法：
TLS 证书认证 基于 CA 的 TLS 证书认证 Unary and Stream …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/grpc/2018-10-12-grpc-http/">「连载七」让你的服务同时提供 HTTP 接口</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/10/12</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 接口需要提供给其他业务组访问，但是 RPC 协议不同无法内调，对方问能否走 HTTP 接口，怎么办？
微信（公众号、小程序） …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/grpc/2018-10-10-interceptor/">「连载六」Unary and Stream interceptor</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/10/10</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 我想在每个 RPC 方法的前或后做某些事情，怎么做？
本章节将要介绍的拦截器（interceptor），就能帮你在合适的地方实现这些功能。 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/grpc/2018-10-08-ca-tls/">「连载五」基于 CA 的 TLS 证书认证</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/10/08</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 在上一章节中，我们提出了一个问题。就是如何保证证书的可靠性和有效性？你如何确定你 Server、Client 的证书是对的呢？
CA 为了保证证书的可靠性 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/grpc/2018-10-07-grpc-tls/">「连载四」TLS 证书认证</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/10/07</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 在前面的章节里，我们介绍了 gRPC 的四种 API 使用方式。是不是很简单呢 😀
此时存在一个安全问题，先前的例子中 gRPC …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/pkg/2018-09-28-log/">log 标准库</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/09/28</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>日志 输出 2018/09/28 20:03:08 EDDYCJY Blog... 构成 [日期]&lt;空格&gt;[时分秒]&lt;空格&gt;[内 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/grpc/2018-09-24-stream-client-server/">「连载三」gRPC Streaming, Client and Server</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/09/24</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 本章节将介绍 gRPC 的流式，分为三种类型：
Server-side streaming RPC：服务器端流式 RPC Client-side …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/grpc/2018-09-23-client-and-server/">「连载二」gRPC Client and Server</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/09/23</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 本章节将使用 Go 来编写 gRPC Server 和 Client，让其互相通讯。在此之上会使用到如下库：
google.golang.org/grpc …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/grpc/2018-09-22-install/">「连载一」gRPC及相关介绍</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/09/22</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>项目地址：https://github.com/EDDYCJY/go-grpc-example
作为开篇章，将会介绍 gRPC 相关的一些知识。 …</p>
                        
                    </div>
            </article>
        </div>
        

    </div>


    <nav class="navigation pagination" role="navigation" aria-label="Posts">
        <h2 class="screen-reader-text">Posts navigation</h2>
        <div class="nav-links">
            
            <a class="prev page-numbers" href="/page/17/">Previous</a>
            
            
            
            <a class="page-numbers" href="/">1</a>
            
            
            
            <a class="page-numbers" href="/page/2/">2</a>
            
            
            
            <a class="page-numbers" href="/page/3/">3</a>
            
            
            
            <a class="page-numbers" href="/page/4/">4</a>
            
            
            
            <a class="page-numbers" href="/page/5/">5</a>
            
            
            
            <a class="page-numbers" href="/page/6/">6</a>
            
            
            
            <a class="page-numbers" href="/page/7/">7</a>
            
            
            
            <a class="page-numbers" href="/page/8/">8</a>
            
            
            
            <a class="page-numbers" href="/page/9/">9</a>
            
            
            
            <a class="page-numbers" href="/page/10/">10</a>
            
            
            
            <a class="page-numbers" href="/page/11/">11</a>
            
            
            
            <a class="page-numbers" href="/page/12/">12</a>
            
            
            
            <a class="page-numbers" href="/page/13/">13</a>
            
            
            
            <a class="page-numbers" href="/page/14/">14</a>
            
            
            
            <a class="page-numbers" href="/page/15/">15</a>
            
            
            
            <a class="page-numbers" href="/page/16/">16</a>
            
            
            
            <a class="page-numbers" href="/page/17/">17</a>
            
            
            
            <span aria-current="page" class="page-numbers current">18</span>
            
            
            
            
            <a class="page-numbers" href="/page/19/">19</a>
            
            
            
            <a class="page-numbers" href="/page/20/">20</a>
            
            
            
            <a class="page-numbers" href="/page/21/">21</a>
            
            
            
            <a class="next page-numbers" href="/page/19/">Next</a>
            
        </div>
    </nav>
</section> 
<script src="https://readmore.openwrite.cn/js/readmore.js" type="text/javascript"></script>
<script>
    const btw = new BTWPlugin();
    btw.init({
        id: 'container',
        blogId: '33573-1732499652133-368',
        name: '花落雨忧',
        qrcode: 'https://www.lican.site/wechat/lican.png',
        keyword: '花落雨忧',
    });
</script>


                
                <aside class="sidebar sidebar-primary" id="sidebar-primary" role="complementary">
    <h1 class="screen-reader-text">Sidebar</h1>
    

    
    
    <section id="text-2" class="widget widget_text">
        <div class="textwidget">
            
            <div id="profile">
                <div id="profile_picture"><img src="https://www.lican.asia/logo/logo.png"></div>
                <div id="profile_intro">
                    <p><span class="name">Lican</span></p>
                    <p class="intro">全栈开发者，爱好造轮子。</p>
                </div>
            </div>
            
            <p>
                <script type="text/javascript">
                    (function ($) {
                        $(document).ready(function () {
                            var menuPrimaryContainer = $('#menu-primary-container');
                            var profile = $('#text-2');
                            $('#toggle-navigation').click(function () {
                                if (menuPrimaryContainer.hasClass('open')) {
                                    profile.removeClass('open');
                                } else {
                                    profile.addClass('open');
                                }
                            });
                        });
                    })(jQuery);
                </script>
            </p>
        </div>
    </section>
    
    
    
    
    
    <section id="text-5" class="widget widget_text">
        <h2 class="widget-title">开源项目</h2>
        <div class="textwidget">
            <div id="projects" style="line-height: 22px;">
                
                <a href="https://github.com/idoubi/gonews"
                    target="_blank">gonews</a>: &nbsp;Daily news for golang<br>
                
                <a href="https://github.com/idoubi/sql2struct"
                    target="_blank">sql2struct</a>: &nbsp;Generate go struct according to SQL<br>
                
                <a href="https://github.com/idoubi/goz"
                    target="_blank">goz</a>: &nbsp;Request library used in golang<br>
                
        </div>
    </section>
    
    

    
    
    
    
    <section id="qrcode" class="widget widget_media_image">
        <h2 class="widget-title">微信公众号</h2>
        <img width="258" height="258"
            src="https://www.lican.asia/wechat/lican.png"
            class="image wp-image-5514  attachment-full size-full" alt=""
            style="max-width: 100%; height: auto;"
            sizes="(max-width: 258px) 100vw, 258px">
    </section>
    
    

    
    
    

    
    
    

    
    
    
    
</aside>
            </div>
        </div>

        <footer id="site-footer" class="site-footer" role="contentinfo">
    <div class="max-width">
    </div>
    <div class="footer">
        <div id="footercontent">
            © lican.asia All rights reserved<br/>
            Built with Hugo Theme <a href="https://github.com/idoubi/hugo-theme-period" target="_blank">Period</a>
        </div>
    </div>
</footer>

<script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?e8351b6d4626d5881d439ea1f6184baa";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
</script>
    
    
    </div>
    
</body>

</html>